import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL_BI

/**
 * 日志统计
 * @param {*} data
 */
export function biLogStatisticsAPI(data) {
	return request({
		url: BASE_URL + "biWork/logStatistics",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 日志统计导出
 * @param {*} data
 */
export function biLogExcelExportAPI(data) {
	return request({
		url: BASE_URL + "biWork/logStatisticsExport",
		method: "post",
		data: data,
		responseType: "blob",
		timeout: 600000,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 审批统计
 * @param {*} data
 */
export function biExamineStatisticsAPI(data) {
	return request({
		url: BASE_URL + "biWork/examineStatistics",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 审批统计详情列表
 * @param {*} data
 */
export function biExamineIndexAPI(data) {
	return request({
		url: BASE_URL + "biWork/examineInfo",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 审批统计导出
 * @param {*} data
 */
export function biExamineExcelExportAPI(data) {
	return request({
		url: BASE_URL + "biWork/examineStatisticsExport",
		method: "post",
		data: data,
		responseType: "blob",
		timeout: 600000,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}
